package com.googlecode.roleaccesscontrol.wicket;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;

public abstract class BasePage extends WebPage {

	public BasePage() {
		add(new Label("page.title", String.format(getPageTitleFormatString(),
				getSuffixTitleString())));
	}

	protected String getPageTitleFormatString() {
		return getLocalizer().getString("page.title.format.string", this);
	}

	protected abstract String getSuffixTitleString();
}
